package com.example.springboottest.student.service.impl;

import com.example.springboottest.student.mapper.StuMapper;
import com.example.springboottest.student.model.Student;
import com.example.springboottest.student.service.Stu3MybatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("stu3MybatisService")
public class Stu3MybatisServiceImpl implements Stu3MybatisService {
    @Autowired
    private StuMapper stuMapper;

    @Override
    public void idoUpdate() {
        Student otherStudent = stuMapper.findById("d91ee5cc9e664582a39e07b11b2ed36b");
        otherStudent.setAddress("长春33333");
        stuMapper.update(otherStudent);
    }
}